import request from '@/router/axios'

/**
 * 发送验证码
 * @param {} params 
 * @returns 
 */
export function sendCode (params) {
  return request({
    url: '/api/common/code/send',
    method: 'get',
    params
  })
}

/**
 * 检验验证码
 * @param {} data 
 * @returns 
 */
export function checkCode (params) {
  return request({
    url: '/api/common/code/check',
    method: 'post',
    params
  })
}